.index {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: #fff;
  .search {
    width: 100%;
    box-sizing: border-box;
    padding: 0 25px 0 10px;
    position: fixed;
    top: 0;
    z-index: 99;
    height: 80px;
    display: flex;
    flex-direction: row;
    align-items: center;
    background: #fff;

    div:nth-child(1) {
      width: 115px;
      text-align: center;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      font-size: 20px;
      padding-right: 15px;
    }

    div:nth-child(2) {
      flex: 1;
      position: relative;

      input {
        width: 100%;
        height: 56px;
        border-radius: 8px;
        background: #ededed;
        box-sizing: border-box;
        padding-left: 40px;
      }

      .icon {
        position: absolute;
        top: 15px;
        left: 10px;
        background: url("http://yanxuan.nosdn.127.net/hxm/yanxuan-wap/p/20161201/style/img/icon-normal/search2-2fb94833aa.png")
          center no-repeat;
        background-size: 100%;
        width: 28px;
        height: 28px;
        margin-right: 10px;
      }
    }
  }

  .swiper {
    width: 100%;
    height: 417px;
    margin-top: 80px;

    .swiper-container {
      width: 100%;
      height: 100%;
      position: relative;
      .swiper-item {
        width: 100%;
        height: 100%;

        .slide-image {
          width: 100%;
          height: 100%;
        }
      }
      .dot-con {
        position: absolute;
        bottom: 5px;
        left: 50%;
        transform: translateX(-50%);
      }
    }
  }

  .channel {
    display: flex;
    flex-direction: row;
    padding: 20px 0;
    background: #ffffff;

    div {
      width: 25%;
      text-align: center;
      display: flex;
      align-items: center;
      flex: 1;
      .img {
        height: 58px;
        width: 58px;
        display: inline-block;
      }
    }
  }

  .brand {
    width: 100%;
    margin-top: 20px;
    background: #ffffff;

    .head {
      font-size: 15px;
      text-align: center;
      padding: 20px 0;
      padding-left: 15px;
    }

    .content {
      width: 730px;
      margin: 0 auto;
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      flex-wrap: wrap;

      div {
        width: 360px;
        height: 235px;
        margin-bottom: 10px;
        position: relative;

        div {
          position: absolute;
          top: 0;
          left: 0;
          padding: 10px;

          p:nth-child(2) {
            font-size: 24px;
          }
        }

        .img {
          width: 100%;
          height: 100%;
        }
      }
    }
  }

  .newgoods {
    .newgoods-top {
      margin-top: 20px;
      height: 260px;
      width: 100%;
      background: url("/static/images/bgnew.png") no-repeat;
      background-size: 100% 100%;
      text-align: center;
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;

      .top {
        p {
          color: #8c9bae;
          font-size: 32px;
          text-align: center;
        }

        p:nth-child(2) {
          width: 180px;
          height: 50px;
          text-align: center;
          line-height: 50px;
          margin: 27px auto 0 auto;
          font-size: 22px;
          background: #d8e4f0;
        }
      }
    }

    .list {
      margin-top: 20px;
      background: #fff;
      padding-bottom: 10px;

      ul {
        .scroll-view {
          width: 100%; // height: 470px; // display: flex;
          // flex-wrap: nowrap;
          white-space: nowrap;
          flex-direction: row;
          overflow-x: auto;
          li {
            width: 280px;
            height: 416px;
            margin: 5px 0 5px 25px;
            display: inline-block;

            .img {
              width: 280px;
              height: 280px;
            }

            p:nth-child(2) {
              font-size: 30px;
              font-weight: bold;
            }

            p:nth-child(3) {
              color: #8a8a8a;
              font-size: 24px;
            }

            p:nth-child(4) {
              color: #9c3232;
              font-size: 24px;
            }

            p {
              width: 94%;
              overflow: hidden;
              white-space: nowrap;
              text-overflow: ellipsis;
              margin-top: 8px;
              text-indent: 1em;
            }
          }

          li:nth-child(n + 2) {
            border-left: 1px solid #f4f4f4;
          }
        }
      }
    }
  }

  .hotgoods {
    .newgoods-top {
      background: url("/static/images/bgtopic.png") no-repeat;
      background-size: 100% 100%;

      .top {
        p {
          color: #b1a279;
          font-size: 32px;
          vertical-align: middle;
        }

        p:nth-child(1) {
          span {
            width: 4px;
            height: 4px;
            font-size: 14px;
            display: inline-block;
            vertical-align: middle;
            background: #b1a279;
          }
        }

        p:nth-child(2) {
          background: #f4e9cb;
        }
      }
    }
  }

  .topicList {
    margin-top: 20px;
    background: #fff;

    .topicList-top {
      text-align: center;
      padding: 36px;
      vertical-align: middle;

      .icon {
        display: inline-block;
        width: 32px;
        height: 32px;
        margin-left: 5px;
        // background: url('/static//images/right.png') no-repeat;
        background-size: 100% 100%;
        vertical-align: middle;
      }
    }

    .list {
      .scroll-view {
        white-space: nowrap;
        flex-direction: row;
        overflow-x: auto;
        li {
          display: inline-block;
          width: 575px;
          margin-left: 25px;

          .img {
            display: block;
            width: 575px;
            height: 325px;
            border-radius: 10px;
          }

          .btom {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            margin-bottom: 42px;
            width: 100%;

            div:nth-child(1) {
              width: 90%;

              p {
                margin-top: 8px;
              }

              p:nth-child(1) {
                font-size: 30px;
                font-weight: bold;
              }

              p:nth-child(2) {
                width: 90%;
                color: #8a8a8a;
                font-size: 24px;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
              }
            }

            div:nth-child(2) {
              margin-top: 8px;
              color: #9c3232;
              font-size: 24px;
            }
          }
        }

        li:last-child {
          margin-right: 25px;
        }
      }
    }
  }

  .newcategory {
    margin-top: 20px;
    padding: 0 10px 25px 10px;

    .head {
      padding: 25px 0;
      text-align: center;
    }

    .sublist {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: space-between;
      width: 730px;
      margin: 0 auto;

      div {
        width: 360px;
        background: #fff;
        margin-bottom: 10px;
        padding-bottom: 10px;

        .img {
          display: block;
          width: 302px;
          height: 302px;
          margin: 0 auto;
        }

        p {
          margin-bottom: 5px;
          text-indent: 1em;
        }

        p:nth-child(2) {
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
          width: 98%;
        }

        p:nth-child(3) {
          color: #9c3232;
        }
      }

      .last {
        display: block;
        width: 302px;
        height: 302px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;

        p {
          height: 33px;
          width: 100%;
          line-height: 33px;
          color: #333;
          font-size: 33px;
          text-align: center;
        }

        .icon {
          display: inline-block;
          width: 70px;
          height: 70px;
          background: url('/static/images/rightbig.png') no-repeat;
          background-size: 100% 100%;
          margin-top: 60px;
        }
      }

      div:nth-child(2n) {
        margin-left: 10px;
      }
    }
  }
}
